<?php require_once(dirname(__FILE__)."/../config/config.php"); ?>
<!DOCTYPE html>
<html lang="zh">
<head>
<title>
<?php $shop_id=$_REQUEST['shop_id']; if($shop_id!=""){$sql="select * from zy_shop where shop_id =".$shop_id;
//echo $sql;
$result
=mysql_query($sql);
while($zy_shop=mysql_fetch_array($result)){
 echo $zy_shop['shop_name'];
}
}else{?>点一下,宁波最大的外卖订餐网站!<?php } ?></title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="keywords" content="外卖,网上订餐,餐厅,美食" />
<meta name="description" content="查看附近的餐厅、美食信息" />
<meta http-equiv="X-UA-Compatible" content="chrome=IE6">
<link href="<?php echo SITE_ROOT;?>/css/public/forward.css" type="text/css" rel="stylesheet" />
<link href="<?php echo SITE_ROOT;?>/js/fancyBox-v2.0.5-0/jquery.fancybox.css" type="text/css" rel="stylesheet" />
<!--[if IE]>
<link rel="stylesheet" href="<?php echo SITE_ROOT;?>/css/public/ie-all.css" type="text/css" media="screen" />
<![endif]-->
<link rel="apple-touch-icon-precomposed" href="" />
<link rel="icon" href="" type="image/x-icon" />
<link rel="shortcut icon" href="" type="image/x-icon" />
</head>
<body>
<?php if($_COOKIE['id']){
	$_SESSION['_user']['user_id']=$_COOKIE['id'];
} ?>
<div id="background"></div>
<div class="full-content-wrapper">
<div class="container" style="margin:0 auto; padding:0;">
<a id="logo" href="<?php echo SITE_ROOT;?>" title="回到首页"><img src="<?php echo SITE_ROOT;?>/images/forward/logo.png" /></a>
</div>
  <div class="navbar" data-dropdown="dropdown">
    <div class="navbar-inner">
      <div class="container" style="margin:0 auto; padding:0;"> 
        <ul class="nav">
        <li class="zyMenu-1"></li>
		<?php if(isset($_SESSION['_user']['user_id'])){?>
          <li class="delimiter"></li>
          <li ><a href="<?php echo SITE_ROOT;?>/user/order_list.php?method=one-month">我的点单</a></li>
          <li class="delimiter"></li><?php }?>
          <li ><a href="<?php echo SITE_ROOT;?>/gift">礼品中心</a></li>
          <li class="delimiter"></li>
          <!--<li ><a href="<?php echo SITE_ROOT;?>/include/index_message.php">反馈留言</a></li>-->
          <li class="follow-sina"><a href="http://e.weibo.com/2963113320/messboard" target="_blank"><img src="<?php echo SITE_ROOT;?>/images/forward/xin_weibo.png" />私信我们</a></li>
          <li class="delimiter"></li>
          	<?php if(!isset($_SESSION['_shop'])){ ?>
	          <li><a href="<?php echo SITE_ROOT;?>/check_out.php" class="cart">点餐车 <span id="topbar-cart-food-num">(<?php $url=$_SERVER['REQUEST_URI'];
$array=explode("/checkout_success",$url);
if(count($array)>1){
echo '空';
}else{
echo outputCartTotals();}?>)</span> </a></li>
          <?php } ?>
          <li class="delimiter"></li>
            <?php if(isset($_SESSION['_user']['user_id'])){?>
          	 <li class="zyLogin"><a href="#" class="up" id="user-id" user_id="<?php echo $_SESSION['_user']['user_id'];?>"><?php  if($_COOKIE['id']){
	$_SESSION['_user']['user_id']=$_COOKIE['id'];
	$sql2="select * from zy_user where user_id='".$_SESSION['_user']['user_id']."'";
	$result2=mysql_query($sql2);
	$rs2=mysql_fetch_array($result2);
	echo $rs2['username'];
}else{ echo $_SESSION['_user']['username'];}?></a>
               <div class="showBox" id="showBox" style="display:none">
                 <img style="position:absolute; top:-6px; left:97px;" src="<?php echo SITE_ROOT;?>/images/forward/breadcrumb2_03.png">
                 <ul class="zyLoginBox">
                   <li><a href="<?php echo SITE_ROOT;?>/user/user_center.php">个人中心<i class="icon-user"></i></a></li>
                   <li><a href="<?php echo SITE_ROOT;?>/user/favo_store.php">我的收藏<i class="icon-heart"></i></a></li>
                   <li><a href="<?php echo SITE_ROOT;?>/user/address_list.php">我的地址<i class="icon-list"></i></a></li>
                   <li><a href="<?php echo SITE_ROOT;?>/user/edit_password.php">修改密码<i class="icon-cog"></i></a></li>
                 </ul>
               </div>
			 </li>
          	 <li><a href="<?php echo SITE_ROOT;?>/user_login.php?method=logout">退出</a></li>
          	<?php }else if(isset($_SESSION['_shop'])){ ?>
          	  <li><a href="<?php echo SITE_ROOT;?>/shop/shop_management.php" id="_shop_id" shop_id="<?php echo $_SESSION['_shop']['shop_id'];?>"><?php echo $_SESSION['_shop']['shop_name'];?></a></li>
          	  <li><a href="<?php echo SITE_ROOT;?>/user_login.php?method=logout">退出</a></li>
       		<?php }else{?>
          	 <li><a href="<?php echo SITE_ROOT;?>/user_login.php" id="_logout" rel="logout">登录</a></li>
	          <li class="delimiter"></li>
	          <li><a href="<?php echo SITE_ROOT;?>/user_registration.php">注册</a></li>
            <?php } ?>
            <li class="zyMenu-2"></li>
        </ul>
      </div>
    </div>
    <!-- /topbar-inner --> 
  </div>
